package com.zhang.entity;

import java.util.Date;

public class Product {
    private Integer book_id;
    private Integer cid;
    private String book_name;
    private Double book_price;
    private Date groundingDate;
    private Integer inventory;
    private String author;
    private Integer salenum;
    private String messages;
    private Double dangprice;
    private String product_image;
    private Category category;

    public Category getCategory() {
        return category;
    }

    public void setCategory(Category category) {
        this.category = category;
    }

    @Override
    public String toString() {
        return "Product{" +
                "book_id=" + book_id +
                ", cid=" + cid +
                ", book_name='" + book_name + '\'' +
                ", book_price=" + book_price +
                ", groundingDate=" + groundingDate +
                ", inventory=" + inventory +
                ", author='" + author + '\'' +
                ", salenum=" + salenum +
                ", messages='" + messages + '\'' +
                ", dangprice=" + dangprice +
                ", product_image='" + product_image + '\'' +
                ", category=" + category +
                '}';
    }

    public Integer getBook_id() {
        return book_id;
    }

    public void setBook_id(Integer book_id) {
        this.book_id = book_id;
    }

    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }

    public String getBook_name() {
        return book_name;
    }

    public void setBook_name(String book_name) {
        this.book_name = book_name;
    }

    public Double getBook_price() {
        return book_price;
    }

    public void setBook_price(Double book_price) {
        this.book_price = book_price;
    }

    public Date getGroundingDate() {
        return groundingDate;
    }

    public void setGroundingDate(Date groundingDate) {
        this.groundingDate = groundingDate;
    }

    public Integer getInventory() {
        return inventory;
    }

    public void setInventory(Integer inventory) {
        this.inventory = inventory;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public Integer getSalenum() {
        return salenum;
    }

    public void setSalenum(Integer salenum) {
        this.salenum = salenum;
    }

    public String getMessages() {
        return messages;
    }

    public void setMessages(String messages) {
        this.messages = messages;
    }

    public Double getDangprice() {
        return dangprice;
    }

    public void setDangprice(Double dangprice) {
        this.dangprice = dangprice;
    }

    public String getProduct_image() {
        return product_image;
    }

    public void setProduct_image(String product_image) {
        this.product_image = product_image;
    }

    public Product(Integer book_id, Integer cid, String book_name, Double book_price, Date groundingDate, Integer inventory, String author, Integer salenum, String messages, Double dangprice, String product_image) {
        this.book_id = book_id;
        this.cid = cid;
        this.book_name = book_name;
        this.book_price = book_price;
        this.groundingDate = groundingDate;
        this.inventory = inventory;
        this.author = author;
        this.salenum = salenum;
        this.messages = messages;
        this.dangprice = dangprice;
        this.product_image = product_image;
    }

    public Product() {
    }
}
